import {request} from '@@/plugin-request';

export async function getUsers(body) {
  return request('/admin/system/common/users', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function getMenus(body) {
  return request('/admin/system/common/menus', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function getDepts(body) {
  return request('/admin/system/common/depts', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function getPosts(body) {
  return request('/admin/system/common/posts', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}

export async function getRoles(body) {
  return request('/admin/system/common/roles', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
  });
}